package com.cuijq.ms.chain.v1;

/**
 * @author by CuiJQ
 * @Classname ConcreteHandler
 * @Description ConcreteHandler Description
 * @Date 2021/7/13 19:36
 */
public class ConcreteHandler1  extends Handler {

  @Override
  public void handleRequest(String request) {
    if (request.equals("one")) {
      System.out.println("具体处理者1负责处理该请求！");
    } else {
      if (getNext() != null) {
        getNext().handleRequest(request);
      } else {
        System.out.println("没有人处理该请求！");
      }
    }
  }
}
